package javazuoye4;

public class zuoye05 {
    public static void main(String[] args) {
        String a="abcdefghijk";
        int x=2,y=7;
      Fanzhuan(a,x,y);
    }
    public static void Fanzhuan(String a,int x,int y){
      int c=a.length();
       StringBuilder d= new StringBuilder();
        StringBuilder e= new StringBuilder();
        for(int i=y;i>=x;i--){
            d.append(a.charAt(i));
        }
        e.append(a.substring(0,x)).append(d).append(a.substring(y,c));
        System.out.println(e);
    }
}
